<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use DB;
class Login extends Model
{
    //执行登陆数据库查询
    public function doLogin($username)
    {
    	$data = DB::table("user")->where("name",$username)->first();
    	return $data;
    }


}


